package com.service;

import com.vo.UserGpInfoVO;
import org.apache.ibatis.annotations.Param;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 陈忠杰
 * @Date: 2021/06/29/17:13
 * @Description:
 */
public interface RecordService {

    /**
     *
     * @Description: 返回分页后的数据的方法
     * @Param: [pageNo] 查找的页数
     * @return: com.github.pagehelper.PageInfo<com.entity.GoldPoints>  返回分页后的数据
     * @Author: 陈忠杰
     * @Date: 2021/6/30
     */
    public UserGpInfoVO getAllGoldPoints(int pageNo);




    /**
    * @Description: 根据userId和points来更行表中的积分和金币的信息
    * @Param: [userId：待修改的userId, points：是提交的较少的积分数]
    * @return: int
    * @Author: 陈忠杰
    * @Date: 2021/6/30
    */
//    int exChangePoints(int userId,int points);




    /**
    * @Description:
    * @Param: [userId, points]
    * @return: int
    * @Author: 陈忠杰
    * @Date: 2021/6/30
    */
    int insGoldPoints(@Param("userID") int userId, @Param("points") int points);
}
